﻿<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>ProClinic-医院管理系统Bootstrap4前端框架</title>
	<!-- Fav  Icon Link -->
	<link rel="shortcut icon" type="image/png" href="images/fav.png">
	<!-- Bootstrap core CSS -->
	<link rel="stylesheet" href="css/bootstrap.min.css">
	<!-- themify icons CSS -->
	<link rel="stylesheet" href="css/themify-icons.css">
	<!-- Animations CSS -->
	<link rel="stylesheet" href="css/animate.css">
	<!-- Main CSS -->
	<link rel="stylesheet" href="css/styles.css">
	<link rel="stylesheet" href="css/green.css" id="style_theme">
	<link rel="stylesheet" href="css/responsive.css">
	<!-- morris charts -->
	<link rel="stylesheet" href="charts/css/morris.css">
	<!-- jvectormap -->
	<link rel="stylesheet" href="css/jquery-jvectormap.css">

	<script src="js/modernizr.min.js"></script>

	<script src="js/echarts.js"></script>
	<script src="js/jquery.1.10.1.min.js"></script>
</head>

<body>
	<!-- Pre Loader -->
	<div class="loading">
		<div class="spinner">
			<div class="double-bounce1"></div>
			<div class="double-bounce2"></div>
		</div>
	</div>
	<!--/Pre Loader -->
	<!-- Color Changer -->
	<div class="theme-settings" id="switcher">
		<span class="theme-click">
			<span class="ti-settings"></span>
		</span>
		<span class="theme-color theme-default theme-active" data-color="green"></span>
		<span class="theme-color theme-blue" data-color="blue"></span>
		<span class="theme-color theme-red" data-color="red"></span>
		<span class="theme-color theme-violet" data-color="violet"></span>
		<span class="theme-color theme-yellow" data-color="yellow"></span>
	</div>
	<!-- /Color Changer -->
	<div class="wrapper">		
		<!-- Page Content -->
		<div id="content">
			<!-- Top Navigation -->
			<div class="container top-brand">
				<nav class="navbar navbar-default">			
					<div class="navbar-header">
						<div class="sidebar-header"> <a href="index.html"><img src="images/logo-dark.png" class="logo" alt="logo"></a>
						</div>
					</div>
					<ul class="nav justify-content-end">
						<li class="nav-item">
							<a class="nav-link">
								<span title="Fullscreen" class="ti-fullscreen fullscreen"></span>
							</a>							
						</li>
						<li class="nav-item">
							<a class="nav-link" data-toggle="modal" data-target=".lochana-modal-lg">
								<span class="ti-search"></span>
							</a>
							<div class="modal fade lochana-modal-lg" tabindex="-1" role="dialog" aria-hidden="true">
								<div class="modal-dialog modal-lorvens">
									<div class="modal-content lochana-box-shadow2">
										<div class="modal-header">
											<h5 class="modal-title">Search Patient/医生:</h5>
											<span class="ti-close" data-dismiss="modal" aria-label="Close">
											</span>
										</div>
										<div class="modal-body">
											<form>
												<div class="form-group">
													<input type="text" class="form-control" id="search-term" placeholder="Type text here">
													<button type="button" class="btn btn-lorvens lochana-bg">
														<span class="ti-location-arrow"></span> Search</button>
												</div>
											</form>
										</div>
									</div>
								</div>
							</div>
						</li>
						<li class="nav-item">
							<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true"
							 aria-expanded="false">
								<span class="ti-announcement"></span>
							</a>
							<div class="dropdown-menu lochana-box-shadow2 notifications animated flipInY">
								<h5>Notifications</h5>
								<a class="dropdown-item" href="#">
									<span class="ti-wheelchair"></span> New Patient Added</a>
								<a class="dropdown-item" href="#">
									<span class="ti-money"></span> Patient payment done</a>
								<a class="dropdown-item" href="#">
									<span class="ti-time"></span>Patient Appointment booked</a>
								<a class="dropdown-item" href="#">
									<span class="ti-wheelchair"></span> New Patient Added</a>
							</div>
						</li>
						<li class="nav-item">
							<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true"
							 aria-expanded="false">
								<span class="ti-user"></span>
							</a>
							<div class="dropdown-menu lochana-box-shadow2 profile animated flipInY">
								<h5>John Willing</h5>
								<a class="dropdown-item" href="#">
									<span class="ti-settings"></span> Settings</a>
								<a class="dropdown-item" href="#">
									<span class="ti-help-alt"></span> Help</a>
								<a class="dropdown-item" href="#">
									<span class="ti-power-off"></span> Logout</a>
							</div>
						</li>
					</ul>
			
				</nav>
			</div>
			<!-- /Top Navigation -->
			<!-- Menu -->
			<div class="container menu-nav">
				<nav class="navbar navbar-expand-lg lochana-bg text-white">
					<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
					 aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
						<span class="ti-menu text-white"></span>
					</button>
			
					<div class="collapse navbar-collapse" id="navbarSupportedContent">
						<ul class="navbar-nav mr-auto">
							<li class="nav-item dropdown active">
								<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true"
								 aria-expanded="false"><span class="ti-home"></span> 控制面板</a>
								<div class="dropdown-menu">
									<a class="dropdown-item" href="index.html">默认</a>
								</div>
							</li>
							<li class="nav-item dropdown">
								<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true"
								 aria-expanded="false"><span class="ti-wheelchair"></span> 病人管理</a>
								<div class="dropdown-menu">
									<a class="dropdown-item" href="add-patient.html">添加病人信息</a>
									<a class="dropdown-item" href="patients.html">查看病人信息</a>
									<a class="dropdown-item" href="about-patient.html">病人详情</a>
									<a class="dropdown-item" href="edit-patient.html">编辑病人信息</a>
								</div>
							</li>
							<li class="nav-item dropdown">
								<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true"
								 aria-expanded="false"><span class="ti-user"></span> 医生管理</a>
								<div class="dropdown-menu">
									<a class="dropdown-item" href="add-doctor.html">添加医生信息</a>
									<a class="dropdown-item" href="doctors.html">查询医生信息</a>
									<a class="dropdown-item" href="about-doctor.html">医生信息详情</a>
									<a class="dropdown-item" href="edit-doctor.html">编辑医生信息</a>
									<a class="dropdown-item" href="doctorsTimeArrange.html">医生排班上传</a>
								</div>
							</li>
							<li class="nav-item dropdown">
								<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true"
								 aria-expanded="false"><span class="ti-pencil-alt"></span> 出诊管理</a>
								<div class="dropdown-menu">
									<a class="dropdown-item" href="add-appointment.html">添加出诊信息</a>
									<a class="dropdown-item" href="appointments.html">查询出诊信息</a>
									<a class="dropdown-item" href="about-appointment.html">出诊信息详情</a>
									<a class="dropdown-item" href="edit-appointment.html">编辑出诊信息</a>
								</div>
							</li>
							<li class="nav-item dropdown">
								<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true"
								 aria-expanded="false"><span class="ti-money"></span> 支付管理</a>
								<div class="dropdown-menu">
									<a class="dropdown-item" href="add-payment.html">添加支付</a>
									<a class="dropdown-item" href="payments.html">所有支付</a>
									<a class="dropdown-item" href="about-payment.html">发票</a>
								</div>
							</li>
							<li class="nav-item dropdown">
								<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true"
								 aria-expanded="false"><span class="ti-key"></span> 病房分配</a>
								<div class="dropdown-menu">
									<a class="dropdown-item" href="add-room.html">添加病房</a>
									<a class="dropdown-item" href="rooms.html">查询病房</a>
									<a class="dropdown-item" href="edit-room.html">编辑病房信息</a>
								</div>
							</li>

							<li class="nav-item dropdown">
								<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true"
								 aria-expanded="false"><span class="ti-file"></span> 其它页面</a>
								<div class="dropdown-menu">
									<a class="dropdown-item" href="login.html">登录</a>
									<a class="dropdown-item" href="sign-up.html">注册</a>
									<a class="dropdown-item" href="404.html">404</a>
									<a class="dropdown-item" href="blank-page.html">空白页</a>
									<a class="dropdown-item" href="pricing.html">价格表</a>
									<a class="dropdown-item" href="faq.html">FAQ</a>
									<a class="dropdown-item" href="invoice.html">发票</a>
								</div>
							</li>
						</ul>
					</div>
				</nav>
			</div>
			<!-- /Menu -->
			<!-- Breadcrumb -->
			<!-- Page Title -->
			<div class="container mt-0">
				<div class="row breadcrumb-bar">
					<div class="col-md-6">
						<h3 class="block-title">快速统计</h3>
					</div>
					<div class="col-md-6">
						<ol class="breadcrumb">
							<li class="breadcrumb-item">
								<a href="index.html">
									<span class="ti-home"></span>
								</a>
							</li>
							<li class="breadcrumb-item active">控制面板</li>
						</ol>
					</div>
				</div>
			</div>
			<!-- /Page Title -->
			<!-- /Breadcrumb -->
			<!-- Main Content -->
			<div class="container home">
				<!--<div class="row">
					&lt;!&ndash; Widget Item &ndash;&gt;
					&lt;!&ndash;<div class="col-md-4">
						<div class="widget-area lochana-box-shadow color-red">
							<div class="widget-left">
								<span class="ti-user"></span>
							</div>
							<div class="widget-right">
								<h4 class="wiget-title">病人</h4>
								<span class="numeric color-red">348</span>
								<p class="inc-dec mb-0"><span class="ti-angle-up"></span> +20% 增长</p>
							</div>
						</div>
					</div>
					&lt;!&ndash; /Widget Item &ndash;&gt;
					&lt;!&ndash; Widget Item &ndash;&gt;
					<div class="col-md-4">
						<div class="widget-area lochana-box-shadow color-green">
							<div class="widget-left">
								<span class="ti-bar-chart"></span>
							</div>
							<div class="widget-right">
								<h4 class="wiget-title">出诊</h4>
								<span class="numeric color-green">1585</span>
								<p class="inc-dec mb-0"><span class="ti-angle-down"></span> -15% 减少</p>
							</div>
						</div>
					</div>&ndash;&gt;
					&lt;!&ndash; /Widget Item &ndash;&gt;
					&lt;!&ndash; Widget Item &ndash;&gt;
					<div class="col-md-12">
						<div class="widget-area lochana-box-shadow color-yellow">
							<div class="widget-left">
								<span class="ti-money"></span>
							</div>
							<div class="widget-right">
								<h4 class="wiget-title">收入</h4>
								<span class="numeric color-yellow">$7300</span>
								<p class="inc-dec mb-0"><span class="ti-angle-up"></span> +10% 增长</p>
							</div>
						</div>
					</div>
					&lt;!&ndash; /Widget Item &ndash;&gt;
				</div>-->

				<div class="row">
					<!-- /Widget Item -->
					<!-- Widget Item -->
					<div class="col-md-12">
						<div class="widget-area-2 lochana-box-shadow">
							<h3 class="widget-title"> 医生就诊患者人数</h3>
							<div id="main" style="width: 600px;height:400px;"></div>
							<script type="text/javascript">
								// 基于准备好的dom，初始化echarts实例
								let myChart = echarts.init(document.getElementById('main'));

								$(document).ready(function(){
									$.ajax({
										type: "GET",
										url: "/doctor/count",
										data: {},
										contentType: "application/x-www-form-urlencoded",
										dataType: "json"
									}).done((result)=>{
										let xAxisData = [];
										let seriesData = [];

										$.each(result.data,function(i,obj){
											xAxisData.push(obj.name);
											seriesData.push(obj.value);
										});

										if (result.data!=null){
											// 指定图表的配置项和数据
											let option = {
												title: {
													text: '患者人数'
												},
												tooltip: {},
												legend: {
													data: ['人数']
												},
												xAxis: {
													axisLabel:{
														//x轴文字的配置
														show:true,
														interval:0,//使x轴的文字显示全
													},
													data: xAxisData
												},
												yAxis: {},
												series: [
													{
														name: '销量',
														type: 'bar', //柱状图
														data: seriesData
													}
												]
											};
											// 使用刚指定的配置项和数据显示图表。
											myChart.setOption(option);
										}
									})
								}).fail(()=>{
									alert("xhr request fail")
								});




							</script>
						</div>
					</div>
					<!-- /Widget Item -->
				</div>

				<!--<div class="row">
					&lt;!&ndash; Widget Item &ndash;&gt;
					<div class="col-md-12">
						<div class="widget-area-2 lochana-box-shadow">
							<h3 class="widget-title">出诊</h3>
							<div class="table-responsive">
								<table class="table table-bordered table-striped">
									<thead>
										<tr>
											<th>名人姓名</th>
											<th>医生</th>
											<th>检查</th>
											<th>日期</th>
											<th>时间</th>
											<th>状态</th>
										</tr>
									</thead>
									<tbody>
										<tr>
											<td>Rajesh</td>
											<td>Manoj Kumar</td>
											<td>牙科</td>
											<td>12-10-2018</td>
											<td>12:10PM</td>
											<td>
												<span class="badge badge-success">Completed</span>
											</td>
										</tr>
										<tr>
											<td>Riya</td>
											<td>Daniel </td>
											<td>皮肤科</td>
											<td>12-10-2018</td>
											<td>1:10PM</td>
											<td>
												<span class="badge badge-warning">Pending</span>
											</td>
										</tr>
										<tr>
											<td>Siri</td>
											<td>Daniel </td>
											<td>皮肤科</td>
											<td>12-10-2018</td>
											<td>1:30PM</td>
											<td>
												<span class="badge badge-danger">Cancelled</span>
											</td>
										</tr>
										<tr>
											<td>Rajesh</td>
											<td>Manoj Kumar</td>
											<td>牙科</td>
											<td>12-10-2018</td>
											<td>12:10PM</td>
											<td>
												<span class="badge badge-success">Completed</span>
											</td>
										</tr>
										<tr>
											<td>Riya</td>
											<td>Daniel </td>
											<td>皮肤科</td>
											<td>12-10-2018</td>
											<td>1:10PM</td>
											<td>
												<span class="badge badge-warning">Pending</span>
											</td>
										</tr>
										<tr>
											<td>Siri</td>
											<td>Daniel </td>
											<td>皮肤科</td>
											<td>12-10-2018</td>
											<td>1:30PM</td>
											<td>
												<span class="badge badge-danger">Cancelled</span>
											</td>
										</tr>
									</tbody>
								</table>
							</div>
						</div>
					</div>
					&lt;!&ndash; /Widget Item &ndash;&gt;
				</div>

				<div class="row">
					&lt;!&ndash; Widget Item &ndash;&gt;
					<div class="col-sm-6">
						<div class="widget-area-2 lochana-box-shadow">
							<h3 class="widget-title">出诊 状态</h3>
							<div id="donutMorris" class="chart-home"></div>
						</div>
					</div>
					&lt;!&ndash; /Widget Item &ndash;&gt;
					&lt;!&ndash; Widget Item &ndash;&gt;
					<div class="col-md-6">
						<div class="widget-area-2 progress-status lochana-box-shadow">
							<h3 class="widget-title">医生情况</h3>
							<div class="table-responsive">
								<table class="table table-bordered">
									<thead>
										<tr>
											<th>医生</th>
											<th>科室</th>
											<th>情况</th>
										</tr>
									</thead>
									<tbody>
										<tr>
											<td>Rajesh</td>
											<td>牙科</td>
											<td>
												<span class="badge badge-success">可出诊</span>
											</td>
										</tr>
										<tr>
											<td>Riya</td>
											<td>皮肤科</td>
											<td>
												<span class="badge badge-warning">休假</span>
											</td>
										</tr>
										<tr>
											<td>Siri</td>
											<td>眼科</td>
											<td>
												<span class="badge badge-danger">不可出诊</span>
											</td>
										</tr>
										<tr>
											<td>Rajesh</td>
											<td>牙科</td>
											<td>
												<span class="badge badge-success">可出诊</span>
											</td>
										</tr>
									</tbody>
								</table>
							</div>

						</div>
					</div>
					&lt;!&ndash; /Widget Item &ndash;&gt;

				</div>-->

			</div>
			<!-- /Main Content -->
			<!--Copy Rights-->
			<div class="container">
				<div class="d-sm-flex justify-content-center">
				  <span class="text-muted text-center d-block d-sm-inline-block">Copyright © 2020. All rights reserved.</span>
				</div>
			</div>
			<!-- /Copy Rights-->
		</div>
		<!-- /Page Content -->
	</div>
	<!-- Back to Top -->
	<a id="back-to-top" href="#" class="back-to-top">
		<span class="ti-angle-up"></span>
	</a>
	<!-- /Back to Top -->
	<!-- Jquery Library-->
	<script src="js/jquery-3.2.1.min.js"></script>
	<!-- Popper Library-->
	<script src="js/popper.min.js"></script>
	<!-- Bootstrap Library-->
	<script src="js/bootstrap.min.js"></script>
	<!-- morris charts -->
	<!--<script src="charts/js/raphael-min.js"></script>
	<script src="charts/js/morris.min.js"></script>
	<script src="js/custom-morris.js"></script>-->



	<!-- Custom Script-->
	<script src="js/custom.js"></script>
<style>
.copyrights{text-indent:-9999px;height:0;line-height:0;font-size:0;overflow:hidden;}
</style>
<div class="copyrights" id="links20210126">
	Collect from <a href="http://www.cssmoban.com/"  title="网站模板">模板之家</a>
	<a href="http://cooco.net.cn/" title="组卷网">组卷网</a>
</div>
</body>

</html>